﻿using System;
using System.Collections.Generic;
using System.Web;
using DAO;

namespace BUS
{
    public class ChiTietDealBUS
    {
        private ChiTietDealDAO _dDAO;

        public ChiTietDealBUS()
        {
            _dDAO = new ChiTietDealDAO();
        }

        public bool Them(CHITIETDEAL _CHITIETDEAL)
        {
            return _dDAO.Them(_CHITIETDEAL);
        }
        public bool Xoa(CHITIETDEAL _CHITIETDEAL)
        {
            return _dDAO.Xoa(_CHITIETDEAL);
        }
        public bool Sua(CHITIETDEAL _CHITIETDEAL)
        {
            return _dDAO.Sua(_CHITIETDEAL);
        }
        public CHITIETDEAL TimTen(String _name)
        {
            return _dDAO.TimTen(_name);
        }
        public CHITIETDEAL ChiTiet(String _id)
        {
            return _dDAO.LayID(_id);
        }
        public List<CHITIETDEAL> LietKe()
        {
            return _dDAO.LietKe();
        }

        public List<CHITIETDEAL> Lay4ChiTietBatKi()
        {
            return _dDAO.Lay4ChiTietBatKi();
        }

        public List<CHITIETDEAL> Lay4theodanhmuc(string iddanhmuc)
        {
            return _dDAO.Lay4theodanhmuc(iddanhmuc);
        } 
    }
}
